namespace ElevatorSpeeches
{
	using System;
	using System.Web;
    using Castle.ActiveRecord;
    using Castle.ActiveRecord.Framework;
    using Castle.ActiveRecord.Framework.Config;
    

	public class GlobalApplication : HttpApplication
	{
		public GlobalApplication()
		{
		}

		public void Application_OnStart()
		{

            IConfigurationSource source = ActiveRecordSectionHandler.Instance;
            ActiveRecordStarter.Initialize(System.Reflection.Assembly.Load("ElevatorSpeeches.Framework"), source);
		}

		public void Application_OnEnd() 
		{
		}
	}
}
